﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<zeus.Core.Dispositivo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h2>ListaDispositivos</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Marca
            </th>
            <th>
                Modelo
            </th>
            <th>
                Tipo
            </th>
            <th>
                Serial
            </th>
            <th>
                Imei
            </th>
            <th>
                Observaciones
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%= Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%= Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%= Html.Encode(item.Marca) %>
            </td>
            <td>
                <%= Html.Encode(item.Modelo) %>
            </td>
            <td>
                <%= Html.Encode(item.Tipo) %>
            </td>
            <td>
                <%= Html.Encode(item.Serial) %>
            </td>
            <td>
                <%= Html.Encode(item.IMEI) %>
            </td>
            <td>
                <%= Html.Encode(item.Observaciones) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>
